<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">


for(var i = 0;i <5 ;i ++){
	for(var j = 0;j<5;j++){
		alert(i+','+j);
		//0,0
		//0,1
		//0,2
		//0,3
		//0,4
		//1,0
	}
}

</script>
</body>
</html>